//
//  FirstBaseModelCell.m
//  GIFShow
//
//  Created by 陈凯 on 15/6/5.
//  Copyright (c) 2015年 CK. All rights reserved.
//

#import "FirstBaseModelCell.h"
#import <objc/objc.h>
@implementation FirstBaseModelCell

- (void)awakeFromNib {
    // Initialization code
}
+(instancetype)cellForModel:(FirstBaseModel *)baseModel{

    NSString * className = [[NSString alloc]initWithUTF8String:object_getClassName(baseModel)];
    NSString * cellClassName = [NSString stringWithFormat:@"%@Cell",className];
    FirstBaseModelCell * cell = [[NSClassFromString(cellClassName) alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellClassName];

    return cell;
    
}
//-(void)setBaseModel:(FirstBaseModel *)baseModel{
//    if (_model != model) {
//        _model = model;
//    }
//}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
